package com.longe.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="seata-demo-bank2",fallback= BankTwoClientFallback.class)
public interface BankTwoClient {
    //远程调用李四的微服务
    @GetMapping("/transfer")
    String transfer(@RequestParam("amount") Double amount);
}
